home *** CD-ROM | disk | FTP | other *** search
/ Virtual Sex With Asia / Virtual Sex With Asia.iso / pc / asia.dxr / Internal_5_--• movie scripts, interaction-related1.ls < prev    next >
Encoding:
Text File  |  1997-09-03  |  6.7 KB  |  216 lines

  1. global gMovie1TimeCodes, gMovie2TimeCodes, gMovie3TimeCodes, gMovie4TimeCodes, gMovie5TimeCodes, gMovie6TimeCodes, gMovie7TimeCodes, gMovie8TimeCodes, gMovie9TimeCodes, gWhichMovie, gWhichClip, gAutoInUse, gOldMovie, gOldClip, gMarkers, gMovieSprite, gWhichCamera, gPanoMovieID, gReturning, gIntroPlayed, gFromFullScreen, gFloatingSprite, gAutomated, gRecording, gPlaying, gStaring, gMoviePauseState, gFullScreen, gSliderSprite, gCode, gWeapon, gOldWhichMovie, gOldWhichClip, gLoadedTimeCodes, gDontMessWithTheSlider, gStopTime, gStartTime, gDontReturnTo0, gNew, gLastGirl, gLastClip, gMachineType, gFasterMachine, gX, gStartOrStop, gMarker0, gUpdateFrame, gOldQuinCast, gQuinSprite, gParticipate, gTalk, gTalking, gTalkLoop, gPosing, gStartTime1, gStartTime2, gStopTime1, gStopTime2
  2.  
  3. on removeFloating
  4.   deactivate([gFloatingSprite])
  5.   set the visible of sprite gFloatingSprite to 0
  6.   updateStage()
  7. end
  8.  
  9. on legalButton whichSprite, maintainScript
  10.   if maintainScript <> 1 then
  11.     set the timeoutScript to "nothing"
  12.   end if
  13.   return 1
  14. end
  15.  
  16. on selectGirl whichSprite, updateIt, dontRestore
  17.   if gStaring > 0 then
  18.     exit
  19.   end if
  20.   if updateIt > 0 then
  21.     exit
  22.   end if
  23.   figureItOutLight(whichSprite = 22)
  24.   set theMovieTime to the movieTime of sprite gMovieSprite
  25.   set whichClass to class()
  26.   set whichX to getAt(gWhichMovie, whichClass)
  27.   set whichY to getAt(gWhichClip, whichClass)
  28.   set whichZ to getAt(gWhichCamera, whichClass)
  29.   set xTime to [-100, -100, -100, -100]
  30.   do("set xTime=getAt ( gMovie" & whichX & "TimeCodes, whichY )")
  31.   case count(xTime) < 4 of
  32.     1:
  33.       append(xTime, getAt(xTime, 1))
  34.       append(xTime, getAt(xTime, 2))
  35.   end case
  36.   case whichZ of
  37.     "B":
  38.       set xTime to [getAt(xTime, 3), getAt(xTime, 4), getAt(xTime, 1), getAt(xTime, 2)]
  39.   end case
  40.   case (theMovieTime < (getAt(xTime, 1) + 6)) or (theMovieTime > getAt(xTime, 3)) of
  41.     1:
  42.       set theMovieTime to getAt(xTime, 1) + 6
  43.   end case
  44.   storeStopTime(theMovieTime, 1, 1)
  45.   returnSlider()
  46.   set whichClass to class()
  47.   case whichSprite of
  48.     22:
  49.       restoreGPreviousClip(dontRestore)
  50.     23:
  51.       case whichClass of
  52.         1:
  53.           restoreGPreviousClip(dontRestore)
  54.           case gFullScreen of
  55.             0:
  56.               set returnFrame to the frame
  57.               puppetSprite(46, 0)
  58.               puppetSprite(47, 0)
  59.               go("hand1")
  60.               puppetSprite(46, 1)
  61.               go(returnFrame)
  62.           end case
  63.       end case
  64.     24:
  65.       case whichClass of
  66.         1:
  67.           restoreGPreviousClip(dontRestore)
  68.           case gFullScreen of
  69.             0:
  70.               set returnFrame to the frame
  71.               puppetSprite(46, 0)
  72.               puppetSprite(47, 0)
  73.               go("vibrator1")
  74.               puppetSprite(47, 1)
  75.               go(returnFrame)
  76.           end case
  77.       end case
  78.   end case
  79.   setAt(gParticipate, whichClass, 1)
  80.   viewControls(1)
  81.   restoreControl()
  82.   set gAutomated to 0
  83.   flashQD(whichSprite)
  84.   if gPosing < 1 then
  85.     setMovieRate(0.0)
  86.     updateStage()
  87.     set the loc of sprite gMovieSprite to the loc of sprite gMovieSprite
  88.     set the volume of sprite gMovieSprite to the soundLevel * 28
  89.     go(the frame)
  90.   end if
  91.   if whichSprite <= 17 then
  92.     set whichGirl to whichSprite
  93.   else
  94.     set whichGirl to whichSprite - 17
  95.   end if
  96.   updateGOldMovie(whichClass)
  97.   setAt(gOldMovie, whichClass, getAt(gWhichMovie, whichClass))
  98.   setAt(gWhichMovie, whichClass, whichGirl + ((whichClass = 1) * 2))
  99.   checkGWhichMovie(whichClass, 8)
  100.   if (gStartTime < gStartTime1) or (gStartTime > gStopTime1) then
  101.     storeAndGo(whichClass, 0, 1)
  102.   end if
  103.   if (gStopTime < gStartTime1) or (gStopTime > gStopTime1) then
  104.     storeAndGo(whichClass, 0, 1)
  105.   end if
  106.   set the visible of sprite gSliderSprite to 1
  107.   set the visible of sprite 32 to 1
  108.   puppetSprite(32, 0)
  109.   puppetSprite(33, 0)
  110.   puppetSprite(34, 0)
  111.   set gStaring to 0
  112.   cursor(4)
  113.   case whichClass of
  114.     1:
  115.       case gIntroPlayed of
  116.         0:
  117.           case gFullScreen of
  118.             0:
  119.               set randomList to [7]
  120.               case whichGirl of
  121.                 7:
  122.                   set randomList to [2, 3, 4, 8, 9]
  123.                 otherwise:
  124.                   set randomList to [3, 4, 8, 9]
  125.               end case
  126.               set maxCount to count(randomList)
  127.               set whichPhrase to getAt(randomList, random(maxCount))
  128.               talk(whichPhrase, 0)
  129.           end case
  130.           set gIntroPlayed to 1
  131.       end case
  132.   end case
  133.   storeAndGo(whichClass, 1)
  134.   updateGOldMovie(class())
  135. end
  136.  
  137. on selectClip whichSprite
  138.   if gStaring > 0 then
  139.     exit
  140.   end if
  141.   updateGOldMovie(class())
  142.   storeStopTime(-1, 1, 2)
  143.   returnSlider()
  144.   set the volume of sprite gMovieSprite to the soundLevel * 28
  145.   set whichClass to class()
  146.   setAt(gParticipate, whichClass, 1)
  147.   setProp(11, 12, "visibility", 1)
  148.   set the visible of sprite 22 to 1
  149.   setProp(24, 26, "visibility", 1)
  150.   set the visible of sprite 32 to 1
  151.   restoreControl()
  152.   set gAutomated to 0
  153.   flashQD(whichSprite)
  154.   setMovieRate(0.0)
  155.   updateStage()
  156.   set the loc of sprite gMovieSprite to the loc of sprite gMovieSprite
  157.   set the volume of sprite gMovieSprite to the soundLevel * 28
  158.   go(the frame)
  159.   set whichClip to whichSprite - 23
  160.   set the visible of sprite gSliderSprite to 1
  161.   set the visible of sprite 32 to 1
  162.   set gStaring to 0
  163.   puppetSprite(32, 0)
  164.   puppetSprite(33, 0)
  165.   puppetSprite(34, 0)
  166.   advanceClip(whichClip, whichClass)
  167.   updateGOldMovie(whichClass)
  168. end
  169.  
  170. on flashQD whichSprite
  171.   if QT(gMovieSprite) then
  172.     set gMoviePauseState to the movieRate of sprite gMovieSprite
  173.   else
  174.     set gMoviePauseState to 0
  175.   end if
  176. end
  177.  
  178. on inverseFlashQD whichSprite
  179.   figureItOutLight(whichSprite = 22)
  180.   set theMovieTime to the movieTime of sprite gMovieSprite
  181.   set whichClass to class()
  182.   set whichX to getAt(gWhichMovie, whichClass)
  183.   set whichY to getAt(gWhichClip, whichClass)
  184.   set whichZ to getAt(gWhichCamera, whichClass)
  185.   set xTime to [-100, -100, -100, -100]
  186.   do("set xTime=getAt ( gMovie" & whichX & "TimeCodes, whichY )")
  187.   case count(xTime) < 4 of
  188.     1:
  189.       append(xTime, getAt(xTime, 1))
  190.       append(xTime, getAt(xTime, 2))
  191.   end case
  192.   case whichZ of
  193.     "B":
  194.       set xTime to [getAt(xTime, 3), getAt(xTime, 4), getAt(xTime, 1), getAt(xTime, 2)]
  195.   end case
  196.   case (theMovieTime < (getAt(xTime, 1) + 6)) or (theMovieTime > getAt(xTime, 3)) of
  197.     1:
  198.       set theMovieTime to getAt(xTime, 1) + 6
  199.   end case
  200.   storeStartTime(theMovieTime, 1, 5)
  201.   if QT(gMovieSprite) then
  202.     set gMoviePauseState to the movieRate of sprite gMovieSprite
  203.   else
  204.     set gMoviePauseState to 0
  205.   end if
  206. end
  207.  
  208. on flashQD2 whichSprite
  209.   setProp(26, 29, "puppet", 0)
  210.   go(the frame)
  211.   puppetSprite(whichSprite, 1)
  212.   set the ink of sprite whichSprite to 0
  213.   set the backColor of sprite whichSprite to 0
  214.   updateStage()
  215. end
  216.